import request from "@/utils/request.js"

//<生产监控>
//陆亿卷号查询
export function storeHouseOut(data) {
	return request({
		url: '/storehouseApply/storeHouseOut',
		method: 'POST',
		data: data,
	})
}

//陆亿合分卷
export function saveMaterialRecordTable(data) {
	return request({
		url: '/materialRecord/saveMaterialRecordTable',
		method: 'POST',
		data: data,
	})
}
//红柳扫码报工
export function queryRestProduction(data) {
	return request({
		url: '/taskReport/queryRestProduction',
		method: 'POST',
		data: data,
	})
}

//裁剪单号查询
export function getProductionCode(data) {
	return request({
		url: '/taskReport/getProductionCode',
		method: 'POST',
		data: data,
	})
}

//扫码报工
export function mobileTaskReport(data) {
	return request({
		url: '/taskReport/mobileTaskReport',
		method: 'POST',
		data: data,
	})
}

//获取当天生产数据
export function getTodayVo(data) {
	return request({
		url: '/taskReport/getTodayVo',
		method: 'POST',
		data: data,
	})
}

//获取卡信息
export function findCardInfoByNo(data) {
	return request({
		url: '/cuttingSheetCard/findCardInfoByNo',
		method: 'POST',
		data: data,
	})
}

//查询已设置工序
export function queryListProcedure(data) {
	return request({
		url: '/equipmentProcedure/queryListProcedure',
		method: 'POST',
		data: data,
	})
}
//手机端用户获取工序
export function queryProcedureByCurrentUserDept(data) {
	return request({
		url: '/styleDept/queryProcedureByCurrentUserDept',
		method: 'POST',
		data: data,
	})
}
//提交刷卡信息
export function saveTaskReport(data) {
	return request({
		url: '/taskReport/saveTaskReport',
		method: 'POST',
		data: data,
	})
}

//前道报工
export function saveMaterialReport(data) {
	return request({
		url: '/materialReport/saveMaterialReport',
		method: 'POST',
		data: data,
	})
}

// <生产领料>
// 获取毯子码
export function getEntityByField(data) {
	return request({
		url: '/materialRecord/getEntityByField',
		method: 'POST',
		data: data,
	})
}

// 提交数据
export function saveMaterialPick(data) {
	return request({
		url: '/materialPick/saveMaterialPick',
		method: 'POST',
		data: data,
	})
}

// 查询生产单号
export function queryListMap(data) {
	return request({
		url: '/productionTask/queryListMap',
		method: 'POST',
		data: data,
	})
}

//<设备管理>
//获取app权限 
export function getAppMenu(data) {
	return request({
		url: '/menu/getAppMenu',
		method: 'POST',
		data: data,
	})
}

//获取设备信息
export function getEntityByCode(data) {
	return request({
		url: '/machine/getEntityByCode',
		method: 'POST',
		data: data,
	})
}

//设备划拨
export function transfer(data) {
	return request({
		url: '/machine/transfer',
		method: 'POST',
		data: data,
	})
}

//保存借出（归还）设备
export function machineSubmit(data) {
	return request({
		url: '/machine/submit',
		method: 'POST',
		data: data,
	})
}

//确认接收设备
export function confirmReceive(data) {
	return request({
		url: '/machine/confirmReceive',
		method: 'POST',
		data: data,
	})
}

//设备报废
export function machineScrap(data) {
	return request({
		url: '/machine/scrap',
		method: 'POST',
		data: data,
	})
}

//获取盘点单
export function machineInventory(data) {
	return request({
		url: '/machineInventory/queryPage',
		method: 'POST',
		data: data,
	})
}

//获取未盘点机器明细
export function machineInventoryId(data) {
	return request({
		url: '/machineInventory/machineInventoryId',
		method: 'POST',
		data: data,
	})
}

//保存盘点
export function updateMachineInventory(data) {
	return request({
		url: '/machineInventory/updateMachineInventory',
		method: 'POST',
		data: data,
	})
}
//部门列表
export function queryTreeList(data) {
	return request({
		url: '/dept/queryTreeList',
		method: 'POST',
		data: data,
	})
}

//根据部门id获取应盘点数量 
export function getCountByDeptId(data) {
	return request({
		url: '/machine/getCountByDeptId',
		method: 'POST',
		data: data,
	})
}

//盘点保存
export function saveMachineInventory(data) {
	return request({
		url: '/machineInventory/saveMachineInventory',
		method: 'POST',
		data: data,
	})
}

//<仓库管理>
//“科奇”仓库管理中扫码出库 申请领料
export function getStorehouseApplyById(data) {
	return request({
		url: '/storehouseDetail/getStorehouseApplyById',
		method: 'POST',
		data: data,
	})
}

//根据条码获取库存信息
export function getStorehouseDetailByCode(data) {
	return request({
		url: '/storehouseDetail/getStorehouseDetailByCode',
		method: 'POST',
		data: data,
	})
}

//扫码退订提交
export function saveBack(data) {
	return request({
		url: '/storehouseDetail/saveBack',
		method: 'POST',
		data: data,
	})
}

//“陆亿”扫码入库查询
export function getStorehouseInByCode(data) {
	return request({
		url: '/storehouseIn/getStorehouseInByCode',
		method: 'POST',
		data: data,
	})
}

//“陆亿”批量入库查询
export function getStorehouseInfhdocnum(data) {
	return request({
		url: '/storehouseIn/getStorehouseInfhdocnum',
		method: 'POST',
		data: data,
	})
}

//“陆亿”扫码入库
export function inStorehouseIn(data) {
	return request({
		url: '/storehouseIn/inStorehouseIn',
		method: 'POST',
		data: data,
	})
}

//扫码入库
export function savePosition(data) {
	return request({
		url: '/storehouseDetail/savePosition',
		method: 'POST',
		data: data,
	})
}

//疵点类型
export function queryDictByType(data) {
	return request({
		url: '/dict/queryDictByType',
		method: 'POST',
		data: data,
	})
}

//“陆亿”仓库管理中扫码出库 条码查询
export function getApplyDetail(data) {
	return request({
		url: '/storehouseApply/getApplyDetail',
		method: 'POST',
		data: data,
	})
}

//“陆亿”仓库管理中扫码出库 卷号查询
export function selectBatchNo(data) {
	return request({
		url: '/storehouseApply/selectBatchNo',
		method: 'POST',
		data: data,
	})
}

//“陆亿”仓库管理中扫码出库 判断卷号或者内部单号
export function isBatchNo(data) {
	return request({
		url: '/storehouseApply/isBatchNo',
		method: 'POST',
		data: data,
	})
}

//扫码出库
export function saveStorehouseOut(data) {
	return request({
		url: '/storehouseOut/saveStorehouseOut',
		method: 'POST',
		data: data,
	})
}

//原料入库查询
export function syncWms(data) {
	return request({
		url: '/storehouseIn/syncWms',
		method: 'POST',
		data: data,
	})
}

//原料入库
export function saveDeliveryDetail(data) {
	return request({
		url: '/storehouseIn/saveDeliveryDetail',
		method: 'POST',
		data: data,
	})
}

//根据库位获取所有库存
export function queryListByPositionCode(data) {
	return request({
		url: '/storehouseDetail/queryListByPositionCode',
		method: 'POST',
		data: data,
	})
}

//保存盘点记录
export function saveStorehouseInventory(data) {
	return request({
		url: '/storehouseInventory/saveStorehouseInventory',
		method: 'POST',
		data: data,
	})
}

//扫码库位获取库存
export function warehouseQueryListMap(data) {
	return request({
		url: '/immediateWarehouse/queryListMap',
		method: 'POST',
		data: data,
	})
}

//调拨
export function storeAllocation(data) {
	return request({
		url: '/storehouseAllocation/allocation',
		method: 'POST',
		data: data,
	})
}

//库存查询
export function queryPageMap(data) {
	return request({
		url: '/immediateWarehouse/queryPageMap',
		method: 'POST',
		data: data,
	})
}


//扫码入库信息
export function RawGetMapyByField(data) {
	return request({
		url: '/storehouseDetail/getMapyByField',
		method: 'POST',
		data: data,
	})
}

//扫码获取仓位
export function positionGetEntityByCode(data) {
	return request({
		url: '/warehousePosition/getEntityByCode',
		method: 'POST',
		data: data,
	})
}

//扫码获取储位
export function storageGetEntityByCode(data) {
	return request({
		url: '/warehouseStorage/getEntityByCode',
		method: 'POST',
		data: data,
	})
}

//获取箱信息
export function getBox(data) {
	return request({
		url: '/box/getBox',
		method: 'POST',
		data: data,
	})
}

//成品入库
export function SaveProductWarehouseIn(data) {
	return request({
		url: '/warehouseIn/saveProductWarehouseIn',
		method: 'POST',
		data: data,
	})
}

//成品出库
export function SaveProductWarehouseOut(data) {
	return request({
		url: '/warehouseOut/saveProductWarehouseOut',
		method: 'POST',
		data: data,
	})
}

//成品出库查询指示单号
export function getOutInstructionsMainByNo(data) {
	return request({
		url: '/outInstructionsMain/getOutInstructionsMainByNo',
		method: 'POST',
		data: data,
	})
}

//成品出库行数据查询
export function findBoxByMaterialCode(data) {
	return request({
		url: '/box/findBoxByMaterialCode',
		method: 'POST',
		data: data,
	})
}

//成品出入库箱号查询（武威监狱）
export function findBoxByCode(data) {
	return request({
		url: '/box/findBoxByCode',
		method: 'POST',
		data: data,
	})
}

//半成品出库查询（陆亿）
export function packingBarcodeNum(data) {
	return request({
		url: '/cuttingSheetPacking/packingBarcodeNum',
		method: 'POST',
		data: data,
	})
}

//半成品入库（陆亿）
export function inPackingWms(data) {
	return request({
		url: '/cuttingSheetPacking/inPackingWms',
		method: 'POST',
		data: data,
	})
}

//半成品出库（陆亿）
export function outPackingType(data) {
	return request({
		url: '/cuttingSheetPackingOut/outPackingType',
		method: 'POST',
		data: data
	})
}

//获取生产单信息
export function getProductionTaskNo(data) {
	return request({
		url: '/productionTask/getProductionTaskNo',
		method: 'POST',
		data: data,
	})
}

//扫码查询
export function getMapyByField(data) {
	return request({
		url: '/warehouseIn/getMapyByField',
		method: 'POST',
		data: data,
	})
}

//入库提交
export function saveWarehousePosition(data) {
	return request({
		url: '/warehouseIn/saveWarehousePosition',
		method: 'POST',
		data: data,
	})
}

//调拨入库
export function allocation(data) {
	return request({
		url: '/warehouseIn/allocation',
		method: 'POST',
		data: data,
	})
}

//获取领料单
export function getWarehouseApply(data) {
	return request({
		url: '/warehouseOut/getWarehouseApply',
		method: 'POST',
		data: data,
	})
}

//获取领料单明细
export function applyDetailQueryListMap(data) {
	return request({
		url: '/applyDetail/queryListMap',
		method: 'POST',
		data: data,
	})
}

//出库提交
export function saveWarehouseOut(data) {
	return request({
		url: '/warehouseOut/saveWarehouseOut',
		method: 'POST',
		data: data,
	})
}

//根据配件id获取对应的入库单列表
export function findListByForeignId(data) {
	return request({
		url: '/warehouseIn/findListByForeignId',
		method: 'POST',
		data: data,
	})
}

// //查询服务-库存查询
// export function queryPageMap(data) {
// 	return request({
// 		url: '/immediateWarehouse/queryPageMap',
// 		method: 'POST',
// 		data: data,
// 	})
// }

//<终端呼叫>
//获取下拉数据
export function findReasonType(data) {
	return request({
		url: '/callReason/findReasonType',
		method: 'POST',
		data: data,
	})
}

//获取故障列表
export function callReasonQueryList(data) {
	return request({
		url: '/callReason/queryList',
		method: 'POST',
		data: data,
	})
}

//呼叫按钮
export function saveBill(data) {
	return request({
		url: '/callQuestions/saveBill',
		method: 'POST',
		data: data,
	})
}

//<处理呼叫>
//应答列表
export function queryQuestionList(data) {
	return request({
		url: '/callQuestions/queryQuestionList',
		method: 'POST',
		data: data,
	})
}

//领取问题
export function receiveQuestion(data) {
	return request({
		url: '/callQuestions/receiveQuestion',
		method: 'POST',
		data: data,
	})
}

//处理问题
export function handleQuestion(data) {
	return request({
		url: '/callQuestions/handleQuestion',
		method: 'POST',
		data: data,
	})
}

//扫码获取设备信息
export function machineGetMapyByField(data) {
	return request({
		url: '/machine/getMapyByField',
		method: 'POST',
		data: data,
	})
}

//<生产报工>
//获取生产单号
export function getProductionNos(data) {
	return request({
		url: '/dailyTarget/getProductionNos',
		method: 'POST',
		data: data,
	})
}

//生产单查询
export function getProductionTaskByNo(data) {
	return request({
		url: '/productionTask/getProductionTaskByNo',
		method: 'POST',
		data: data,
	})
}

//获取裁剪单颜色尺码
export function colorSizeQueryListByField(data) {
	return request({
		url: '/cuttingSheetColorSize/queryListByField',
		method: 'POST',
		data: data,
	})
}

//获取裁剪单部件
export function procedureQueryListByField(data) {
	return request({
		url: '/cuttingSheetProcedure/queryListByField',
		method: 'POST',
		data: data,
	})
}

//获取汇报人
export function getUsersByCurrent(data) {
	return request({
		url: '/user/getUsersByCurrent',
		method: 'POST',
		data: data,
	})
}

//扎包信息查询/生产报工查询
export function queryUncompletedReport(data) {
	return request({
		url: '/taskReport/queryUncompletedReport',
		method: 'POST',
		data: data,
	})
}

//保存扎包/提交生产报工信息
export function handSaveTaskReport(data) {
	return request({
		url: '/taskReport/handSaveTaskReport',
		method: 'POST',
		data: data,
	})
}

//提交生产报工信息
export function queryUncompletedReportNew(data) {
	return request({
		url: '/taskReport/queryUncompletedReportNew',
		method: 'POST',
		data: data,
	})
}

//<包装管理>
//包装完工报工
export function PackingReport(data) {
	return request({
		url: '/packingReport/report',
		method: 'POST',
		data: data,
	})
}

//<产量工资>
//获取当天工资
export function getTodayYeild(data) {
	return request({
		url: '/taskReport/getTodayYeild',
		method: 'POST',
		data: data,
	})
}

//查询工资明细	
export function getYieldList(data) {
	return request({
		url: '/taskReport/getYieldList',
		method: 'POST',
		data: data
	})
}

//<报表信息>

//<裁片超市>
//获取该裁剪单二维码下所有的扎件裁片信息（陆亿）
export function cuttingSheetBarcode(data) {
	return request({
		url: '/cuttingSheetCard/cuttingSheetBarcode',
		method: 'POST',
		data: data
	})
}
//保存裁片
export function saveCscWarehouse(data) {
	return request({
		url: '/sliceStorehouse/saveCscWarehouse',
		method: 'POST',
		data: data
	})
}

//裁片领用
export function outCscWarehouse(data) {
	return request({
		url: '/sliceStorehouse/outCscWarehouse',
		method: 'POST',
		data: data
	})
}

//查询款号下数据（武威监狱）
export function productionColorSizeList(data) {
	return request({
		url: '/productionTask/productionColorSizeList',
		method: 'POST',
		data: data
	})
}

//添加裁片接口（武威监狱）
export function saveCarWarehouse(data) {
	return request({
		url: '/sliceStorehouse/saveCarWarehouse',
		method: 'POST',
		data: data
	})
}

//批量出库（陆亿）
export function cuttingSheetCardLists(data) {
	return request({
		url: '/cuttingSheetCard/cuttingSheetCardLists',
		method: 'POST',
		data: data
	})
}
